package j04liu;

import java.util.stream.Stream;

public class J4 {
    public static void main(String[] args) {
        //1男 2女
        Stream<Integer> s1 = Stream.of(1,2,1,1,2);
//        s1.map(num->{
//            if(num==1){
//                return "男";
//            }
//            return "女";
//        }).forEach(el-> System.out.println(el));

        System.out.println(s1.count());

    }
}
